
package md.sv.dbu.config.jaxb;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for receiveMQType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="receiveMQType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="receiveTask" type="{http://dbu-namespace.md}receiveTaskType" maxOccurs="unbounded"/>
 *       &lt;/sequence>
 *       &lt;attribute name="manager" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="queueFrom" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="queueResult" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="queueError" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="errorPatternFileName" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="removeFromQueue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *       &lt;attribute name="removeFromQueueOnError" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *       &lt;attribute name="byteMessage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       &lt;attribute name="maxMessageRead" type="{http://www.w3.org/2001/XMLSchema}int" />
 *       &lt;attribute name="resultErrorTemplateFile" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="documentIdTag" type="{http://www.w3.org/2001/XMLSchema}string" default="PIMdcat:DocumentID" />
 *       &lt;attribute name="documentIdVar" type="{http://www.w3.org/2001/XMLSchema}string" default="DOCUMENT_ID" />
 *       &lt;attribute name="newIdVariableName" type="{http://www.w3.org/2001/XMLSchema}string" default="NEW_DOCUMENT_ID" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "receiveMQType", namespace = "http://dbu-namespace.md", propOrder = {
    "receiveTask"
})
public class ReceiveMQType {

    @XmlElement(namespace = "http://dbu-namespace.md", required = true)
    protected List<ReceiveTaskType> receiveTask;
    @XmlAttribute
    protected String manager;
    @XmlAttribute
    protected String queueFrom;
    @XmlAttribute
    protected String queueResult;
    @XmlAttribute
    protected String queueError;
    @XmlAttribute
    protected String errorPatternFileName;
    @XmlAttribute
    protected Boolean removeFromQueue;
    @XmlAttribute
    protected Boolean removeFromQueueOnError;
    @XmlAttribute
    protected Boolean byteMessage;
    @XmlAttribute
    protected Integer maxMessageRead;
    @XmlAttribute
    protected String resultErrorTemplateFile;
    @XmlAttribute
    protected String documentIdTag;
    @XmlAttribute
    protected String documentIdVar;
    @XmlAttribute
    protected String newIdVariableName;

    /**
     * Gets the value of the receiveTask property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the receiveTask property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getReceiveTask().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ReceiveTaskType }
     * 
     * 
     */
    public List<ReceiveTaskType> getReceiveTask() {
        if (receiveTask == null) {
            receiveTask = new ArrayList<ReceiveTaskType>();
        }
        return this.receiveTask;
    }

    /**
     * Gets the value of the manager property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getManager() {
        return manager;
    }

    /**
     * Sets the value of the manager property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setManager(String value) {
        this.manager = value;
    }

    /**
     * Gets the value of the queueFrom property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getQueueFrom() {
        return queueFrom;
    }

    /**
     * Sets the value of the queueFrom property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setQueueFrom(String value) {
        this.queueFrom = value;
    }

    /**
     * Gets the value of the queueResult property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getQueueResult() {
        return queueResult;
    }

    /**
     * Sets the value of the queueResult property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setQueueResult(String value) {
        this.queueResult = value;
    }

    /**
     * Gets the value of the queueError property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getQueueError() {
        return queueError;
    }

    /**
     * Sets the value of the queueError property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setQueueError(String value) {
        this.queueError = value;
    }

    /**
     * Gets the value of the errorPatternFileName property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getErrorPatternFileName() {
        return errorPatternFileName;
    }

    /**
     * Sets the value of the errorPatternFileName property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setErrorPatternFileName(String value) {
        this.errorPatternFileName = value;
    }

    /**
     * Gets the value of the removeFromQueue property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isRemoveFromQueue() {
        if (removeFromQueue == null) {
            return true;
        } else {
            return removeFromQueue;
        }
    }

    /**
     * Sets the value of the removeFromQueue property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setRemoveFromQueue(Boolean value) {
        this.removeFromQueue = value;
    }

    /**
     * Gets the value of the removeFromQueueOnError property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isRemoveFromQueueOnError() {
        if (removeFromQueueOnError == null) {
            return true;
        } else {
            return removeFromQueueOnError;
        }
    }

    /**
     * Sets the value of the removeFromQueueOnError property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setRemoveFromQueueOnError(Boolean value) {
        this.removeFromQueueOnError = value;
    }

    /**
     * Gets the value of the byteMessage property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isByteMessage() {
        if (byteMessage == null) {
            return false;
        } else {
            return byteMessage;
        }
    }

    /**
     * Sets the value of the byteMessage property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setByteMessage(Boolean value) {
        this.byteMessage = value;
    }

    /**
     * Gets the value of the maxMessageRead property.
     * 
     * @return
     *     possible object is
     *     {@link Integer }
     *     
     */
    public Integer getMaxMessageRead() {
        return maxMessageRead;
    }

    /**
     * Sets the value of the maxMessageRead property.
     * 
     * @param value
     *     allowed object is
     *     {@link Integer }
     *     
     */
    public void setMaxMessageRead(Integer value) {
        this.maxMessageRead = value;
    }

    /**
     * Gets the value of the resultErrorTemplateFile property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getResultErrorTemplateFile() {
        return resultErrorTemplateFile;
    }

    /**
     * Sets the value of the resultErrorTemplateFile property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setResultErrorTemplateFile(String value) {
        this.resultErrorTemplateFile = value;
    }

    /**
     * Gets the value of the documentIdTag property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDocumentIdTag() {
        if (documentIdTag == null) {
            return "PIMdcat:DocumentID";
        } else {
            return documentIdTag;
        }
    }

    /**
     * Sets the value of the documentIdTag property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDocumentIdTag(String value) {
        this.documentIdTag = value;
    }

    /**
     * Gets the value of the documentIdVar property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDocumentIdVar() {
        if (documentIdVar == null) {
            return "DOCUMENT_ID";
        } else {
            return documentIdVar;
        }
    }

    /**
     * Sets the value of the documentIdVar property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setDocumentIdVar(String value) {
        this.documentIdVar = value;
    }

    /**
     * Gets the value of the newIdVariableName property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getNewIdVariableName() {
        if (newIdVariableName == null) {
            return "NEW_DOCUMENT_ID";
        } else {
            return newIdVariableName;
        }
    }

    /**
     * Sets the value of the newIdVariableName property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setNewIdVariableName(String value) {
        this.newIdVariableName = value;
    }

}
